const state = {
  routersMap: {}
}

const mutations = {
  SETMAP(state, v) {
    const key = v.key
    const value = v.value
    state.routersMap[key] = value
  }
}

const actions = {
  setMap({ commit }, v) {
    commit('SETMAP', v)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
